﻿@model IEnumerable<MyPSDALayer.Role> 
<p>
    @Html.ActionLink("新增", "Create")
</p>
<table class="tableBorder">
    <tr>
        <th>
            @Html.DisplayNameFor(m => m.RoleID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Descr)
        </th>        
        <th>
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.RoleID)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Descr)
            </td>           
            <td>
                @Html.ActionLink("权限分配", "RoleAuthor", new { roleid = item.RoleID })|
                @Html.ActionLink("编辑", "Edit", new { roleid = item.RoleID }) |                
                @Html.ActionLink("删除", "Delete", new { roleid = item.RoleID })
            </td>
        </tr>
    }
</table>
